/*
 * @Author: your name
 * @Date: 2021-06-27 10:26:16
 * @LastEditTime: 2021-06-27 12:14:47
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \xbsg-platform-ui\src\api\community\ownner.js
 */
import request from '@/utils/request'

// 查询业主列表
export function listOwnner(query) {
  return request({
    url: '/community/owner/list',
    method: 'get',
    params: query
  })
}

// 查询业主详细
export function getOwnner(id) {
  return request({
    url: '/community/owner/' + id,
    method: 'get'
  })
}

// 新增业主
export function addOwnner(data) {
  return request({
    url: '/community/owner',
    method: 'post',
    data: data
  })
}

// 修改业主
export function updateOwnner(data) {
  return request({
    url: '/community/owner',
    method: 'put',
    data: data
  })
}

// 删除业主
export function delOwnner(id) {
  return request({
    url: '/community/owner/' + id,
    method: 'delete'
  })
}

